import Cookies from 'js-cookie';
/**
 * 存储cookie到浏览器
 *
 * @export
 * @param {string} name
 * @param {string} value
 * @param {number} expires
 */
export function setCookie(name, value, expires) {
  Cookies.set(name, value, { expires });
}

/**
 * 返回cookie值
 *
 * @export
 * @param {string} name
 * @returns
 */
export function getCookie(name) {
  return Cookies.get(name);
}
